package com.woniuxy.userassembly.dao;

import com.woniuxy.userassembly.model.UserGrade;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Liyfi
 * @since 2021-05-26
 */
public interface UserGradeMapper extends BaseMapper<UserGrade> {


    @Select("select grade_level from hotel_user_grade WHERE #{growth} BETWEEN StartExperienceValue AND EndExperienceValue;")
    int selectLevel(Integer growth);

}
